﻿<%@ Page Language="C#" AutoEventWireup="true" CodeBehind="MoveFileDialog.aspx.cs" Inherits="LenderClearingHouse.MoveFileDialog" %>

<%@ Register Assembly="Telerik.Web.UI" Namespace="Telerik.Web.UI" TagPrefix="telerik" %>

<html xmlns="http://www.w3.org/1999/xhtml">
<head runat="server">
    <title></title>

    <script type="text/javascript">
        function GetRadWindow() {
            var oWindow = null;
            if (window.radWindow) oWindow = window.radWindow;
            else if (window.frameElement.radWindow) oWindow = window.frameElement.radWindow;
            return oWindow;
        }

        function CloseAndRefresh() {
            var oWnd = GetRadWindow();
            if (oWnd.BrowserWindow.Refresh) {
                oWnd.BrowserWindow.Refresh();
            }
            oWnd.close();
        }

        function CancelAndClose() {
            GetRadWindow().close();
        }
    </script>
</head>
<body>
    <form id="form1" runat="server">
        <asp:ScriptManager ID="ScriptManager1" runat="server">
            </asp:ScriptManager>

    <div>
        <asp:RequiredFieldValidator runat="server" ID="RequiredFieldValidator1" ControlToValidate="tree"
            ErrorMessage="Please select a folder" ForeColor="Red" />
        <table style="width: 100%;height:415px" border="0">
            <tr>
                <td height="100%" valign="top">
                    <telerik:RadTreeView ID="tree" runat="server" Width="100%">
                    </telerik:RadTreeView>    
                </td>
            </tr>
            <tr>
                <td align="right" height="40px" valign="middle">
                    <asp:Button ID="btnMove" runat="server" Text="Move" Width="80px" 
                        onclick="btnMove_Click" />&nbsp;&nbsp;<asp:Button ID="Button2"
                        runat="server" Text="Cancel" OnClientClick="CancelAndClose();" Width="80px" CausesValidation="False" />
                </td>
            </tr>
        </table>    
    </div>
    </form>
</body>
</html>
